const {src,dest,watch} = require("gulp");

const sass = require('gulp-sass')(require('sass'));

function sTcFn(){
    return src("./src/sass/index.scss")
    .pipe(sass().on('error', sass.logError))
    .pipe(dest("./dist/css"));
}
function watchSassFn(a){
    watch(["./src/sass/index.scss"], sTcFn);
    a();
}
exports.ws = watchSassFn;
